package com.ludi.usercenter.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ludi.usercenter.model.domain.User;
import com.ludi.usercenter.service.UserService;
import com.ludi.usercenter.mapper.UserMapper;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Override
    public void userRegister(String userAccount, String userPassword, String checkPassword) {
        //非空校验

        //业务校验

        //md5加密

        //保存用户

    }

    @Override
    public void doLogin(String userAccount, String userPassword) {
        //校验

        //查询这个用户

        //记录用户登录态
    }
}




